import welcome4flutter from '../views/welcome4flutter';

const Main = () => import(/* webpackChunkName: "Main" */ '@/views/Main');
const welcome = () => import(/* webpackChunkName: "Main" */ '@/views/welcome');
const PayReversal = () => import(/* webpackChunkName: "Main" */ '@/views/pay-reversal');
// const noPermission = () => import(/* webpackChunkName: "shop" */ '@/views/noPermission');
const Front = () => import(/* webpackChunkName: "Front" */ '@/views/Front/Front');
const Cart = () => import(/* webpackChunkName: "Front" */ '@/views/Cart/Cart');
const News = () => import(/* webpackChunkName: "User" */ '@/views/News/News');
const Spread = () => import(/* webpackChunkName: "User" */ '@/views/Spread/Spread');
const orderListNew = () => import(/* webpackChunkName: "User" */ '@/views/User/onlineOrder/orderListNew');
const User = () => import(/* webpackChunkName: "User" */ '@/views/User/User');
const capitalSteps = () => import(/* webpackChunkName: "capitalSteps" */ '@/views/capitalSteps');
const realAuth = () => import(/* webpackChunkName: "realAuth" */ '@/views/realAuth');
const retrieve = () => import(/* webpackChunkName: "retrieve" */ '@/views/retrieve');
const login = () => import(/* webpackChunkName: "login" */ '@/views/login');
const polyLogin = () => import(/* webpackChunkName: "login" */ '@/views/poly-login');
const register = () => import(/* webpackChunkName: "login" */ '@/views/register');
const polyRegister = () => import(/* webpackChunkName: "login" */ '@/views/poly-register');
const account = () => import(/* webpackChunkName: "account" */ '@/views/account');
const certification = () => import(/* webpackChunkName: "certification" */ '@/views/User/certification');

export default [
    {
        path: '/',
        name: 'Main',
        component: Main,
        redirect: '/welcome',
        children: [
            {
                path: 'front',
                name: 'front',
                component: Front,
                meta: {
                    keepAlive: false
                }
            },
            {
                path: 'cart',
                name: 'cart',
                component: Cart
            },
            {
                path: 'news',
                name: 'news',
                component: News
            },
            {
                path: 'spread',
                name: 'spread',
                component: Spread
            },
            {
                path: 'user',
                name: 'user',
                component: User
            },
            {
                path: 'order-list-new',
                name: 'order-list-new',
                component: orderListNew
            }
        ],
        linkActiveClass: 'active'
    },
    {
        path: '/welcome',
        name: 'welcome',
        component: welcome
    },
    // {
    //     path: '/noPermission',
    //     name: 'noPermission',
    //     component: noPermission,
    // },
    {
        path: '/capital_steps',
        name: 'capital_steps',
        component: capitalSteps
    },
    {
        path: '/real_auth',
        name: 'real_auth',
        component: realAuth
    },
    {
        path: '/retrieve',
        name: 'retrieve',
        component: retrieve
        //    找回密码
    },
    {
        path: '/login',
        name: 'login',
        component: login
        //    登录
    },
    {
        path: '/register',
        name: 'register',
        component: register
        //    注册
    },
    {
        path: '/poly-login',
        name: 'poly-login',
        component: polyLogin,
        meta: { isPoly: true }
        //    登录
    },
    {
        path: '/poly-register',
        name: 'poly-register',
        component: polyRegister,
        meta: { isPoly: true }
        //    注册
    },
    {
        path: '/account',
        name: 'account',
        component: account
        //    账号找回
    },
    {
        path: '/certification',
        name: 'certification',
        component: certification
        //    实名认证
    },
    {
        path: '/welcome4flutter',
        name: 'welcome4flutter',
        component: welcome4flutter
    },
    {
        path: '/pay-reversal', // 小程序支付完回掉页面
        name: 'pay-reversal',
        component: PayReversal
    }
];
